package cn.xiaoliu.hrm.feign;

import cn.xiaoliu.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "system-server",fallbackFactory = UserInfoFallbackFactory.class)
@RequestMapping("/employee")
public interface UserInfoFeignClients {
    @GetMapping("/findUserInfo/{id}")
    AjaxResult findUserInfo(@PathVariable("id")Long id);
}
